<template>
  <view class="my-search-container">
    <!-- 我是搜索 -->
    <!-- 使用 view 组件模拟 input 输入框的样式 -->
    <view class="my-search-box">
      <uni-icons color="#D8D8D8" class="" type="search" size="17"></uni-icons>
      <text class="placeholder">| 请输入关键字搜索</text>
    </view>

  </view>
</template>

<script>
  export default {
    name: "my-search",
    data() {
      return {
      };
    }
  }
</script>

<style lang="scss">
  .my-search-container {
    background-color: #FFFFFF;
    height: 48px;
    display: flex;
    padding-top: 36rpx;
    align-items: center;
    justify-content: center;
    background-image: url('@/static/title.png');
    background-repeat: no-repeat;
    background-position: 0px 46rpx;
  }

  .my-search-box {
    height: 28px;
    background-color: #F2F2F2;
    border-radius: 15px;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;

    .placeholder {
      color: #D8D8D8;
      font-size: 15px;
      margin-left: 5px;
    }
  }
</style>
